package com.BaoHua.demo.interceptor;

import com.BaoHua.demo.bean.Company;

public class UserContext {
	private static final ThreadLocal<Company> USER_HODLER = new ThreadLocal<>();
    
	public static void setUser(Company user){
		USER_HODLER.set(user);
	}
	
	public static void remove(){
		USER_HODLER.remove();
	}
	
	public static Company getUser(){
		return USER_HODLER.get();
	}
}
